Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@changesets/read

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/read

Read changesets from disc, and return the information as JSON

  • 0.6.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-1.65%
Maintainers
4
Weekly downloads
 
Created

What is @changesets/read?

@changesets/read is an npm package that provides utilities for reading and parsing changeset files. Changesets are used to manage versioning and changelogs in a project, and this package helps in extracting and interpreting the information contained in those changesets.

What are @changesets/read's main functionalities?

Reading Changesets

This feature allows you to read a changeset file from a specified path. The `readChangeset` function reads the changeset file and returns its contents, which can then be used for further processing.

const { readChangeset } = require('@changesets/read');
const path = require('path');

async function readExample() {
  const changesetPath = path.join(__dirname, '.changeset', 'example-changeset.md');
  const changeset = await readChangeset(changesetPath);
  console.log(changeset);
}

readExample();

Reading All Changesets

This feature allows you to read all changeset files from a specified directory. The `readChangesets` function reads all changeset files in the directory and returns their contents as an array.

const { readChangesets } = require('@changesets/read');
const path = require('path');

async function readAllExample() {
  const changesetsDir = path.join(__dirname, '.changeset');
  const changesets = await readChangesets(changesetsDir);
  console.log(changesets);
}

readAllExample();

Other packages similar to @changesets/read

FAQs

Package last updated on 04 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc